package models

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Tel      string `gorm:"varchar(11);comment:电话"`
	Password string `gorm:"varchar(30);comment:密码"`
}
type NewUser struct {
	gorm.Model
	Username string `gorm:"varchar(30);comment:用户名"`
	Tel      string `gorm:"varchar(11);comment:电话"`
	Nic      string `gorm:"varchar(20);comment:昵称"`
	Email    string `gorm:"varchar(20);邮箱"`
}
type Article struct {
	gorm.Model
	Title   string `gorm:"varchar(40);comment:评论标题"`
	Comment string `gorm:"varchar(200);comment:评论内容"`
}
